<?php include ("../conectar.php"); 

$id=$_GET["id"];

$query="SELECT * FROM moneda WHERE codigo='$id'";
$rs_query=mysql_query($query);

?>
<html>
	<head>
		<title>Principal</title>
		<link href="../estilos/estilos.css" type="text/css" rel="stylesheet">
		<script type="text/javascript" src="../funciones/validar.js"></script>
		<script language="javascript">
		
		function cancelar() {
			location.href="index.php?cadena_busqueda=<? echo $cadena_busqueda?>";
		}

		function aceptar() {
			document.formulario.submit();
		}

		var cursor;
		if (document.all) {
		// Está utilizando EXPLORER
		cursor='hand';
		} else {
		// Está utilizando MOZILLA/NETSCAPE
		cursor='pointer';
		}
		
		</script>
	</head>
	<body>
		<div id="pagina">
			<div id="zonaContenido">
				<div align="center">
				<div id="tituloForm" class="header">MODIFICAR MONEDA</div>
				<div id="frmBusqueda">
				<form id="formulario" name="formulario" method="post" action="guardar_moneda.php">
					<table class="fuente8" width="98%" cellspacing=0 cellpadding=3 border=0>
						<tr>
							<td>C&oacute;digo</td>
							<td><?php echo $id?></td>
						</tr>
						<tr>
							<td width="15%">Descripcion</td>
						   	<td width="43%"><input NAME="Adescripcion" type="text" class="cajaGrande" id="descripcion" size="45" maxlength="45" value="<?php echo mysql_result($rs_query,0,"descripcion")?>"></	td>
				        	</tr>
						<tr>
							<td width="15%">Simbolo</td>
						   	<td width="43%"><input NAME="Asimbolo" type="text" class="cajaGrande" id="simbolo" size="45" maxlength="45" value="<?php echo mysql_result($rs_query,0,"simbolo")?>"></td>
					        </tr>
						<tr>
							<td>Cantidad decimales</td>
							<td><input NAME="Adecimales" type="text" class="cajaPequena" id="decimales" size="50" maxlength="50" value="<?php echo mysql_result($rs_query,0,"decimales")?>"></td>
						</tr>	
					</table>
			  </div>
				<div id="botonBusqueda">
					<img src="../img/botonaceptar.jpg" width="85" height="22" onClick="aceptar()" border="1" onMouseOver="style.cursor=cursor">
					<img src="../img/botoncancelar.jpg" width="85" height="22" onClick="cancelar()" border="1" onMouseOver="style.cursor=cursor">
					<input id="accion" name="accion" value="modificar" type="hidden">
					<input id="id" name="Zid" value="<?php echo $id?>" type="hidden">
			  </div>
			  </form>
			 </div>
		  </div>
		</div>
	</body>
</html>
